﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Gx.Model.Entity
{
    [Table("LK_WarehouseDeposit")] 
    public class LKWarehouseDeposit
    {
        [Key]
        private int _id;
        /// <summary>
        /// Id
        /// </summary>
        [Column("Id")]
        public int Id 
        {
            get
            {
                return _id;
            }
            set { _id = value; }
        }
        
        
        private string _billNo;
        /// <summary>
        /// 寄存单编号
        /// </summary>
        [Column("BillNo")]
        public string BillNo 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_billNo))
                    _billNo=string.Empty;
                return _billNo;
            }
            set { _billNo = value; }
        }
        
        
        private System.DateTime _depositTime;
        /// <summary>
        /// 寄存时间
        /// </summary>
        [Column("DepositTime")]
        public System.DateTime DepositTime 
        {
            get
            {
                if (_depositTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _depositTime;
            }
            set { _depositTime = value; }
        }
        
        
        private int _customerId;
        /// <summary>
        /// 客户
        /// </summary>
        [Column("CustomerId")]
        public int CustomerId 
        {
            get
            {
                return _customerId;
            }
            set { _customerId = value; }
        }
        
        
        private string _carNumber;
        /// <summary>
        /// 车牌号
        /// </summary>
        [Column("CarNumber")]
        public string CarNumber 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_carNumber))
                    _carNumber=string.Empty;
                return _carNumber;
            }
            set { _carNumber = value; }
        }
        
        
        private string _contractNo;
        /// <summary>
        /// 合同编号
        /// </summary>
        [Column("ContractNo")]
        public string ContractNo 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_contractNo))
                    _contractNo=string.Empty;
                return _contractNo;
            }
            set { _contractNo = value; }
        }
        
        
        private int _totalTon;
        /// <summary>
        /// 总吨重
        /// </summary>
        [Column("TotalTon")]
        public int TotalTon 
        {
            get
            {
                return _totalTon;
            }
            set { _totalTon = value; }
        }
        
        
        private decimal _amount;
        /// <summary>
        /// 总金额
        /// </summary>
        [Column("Amount")]
        public decimal Amount 
        {
            get
            {
                return _amount;
            }
            set { _amount = value; }
        }
        
        
        private bool _isByTon;
        /// <summary>
        /// 按吨操作
        /// </summary>
        [Column("IsByTon")]
        public bool IsByTon 
        {
            get
            {
                return _isByTon;
            }
            set { _isByTon = value; }
        }
        
        
        private string _porterNo;
        /// <summary>
        /// 搬运工单号
        /// </summary>
        [Column("PorterNo")]
        public string PorterNo 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_porterNo))
                    _porterNo=string.Empty;
                return _porterNo;
            }
            set { _porterNo = value; }
        }
        
        
        private string _remark;
        /// <summary>
        /// 备注
        /// </summary>
        [Column("Remark")]
        public string Remark 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_remark))
                    _remark=string.Empty;
                return _remark;
            }
            set { _remark = value; }
        }
        
        
        private System.DateTime _createTime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [Column("CreateTime")]
        public System.DateTime CreateTime 
        {
            get
            {
                if (_createTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _createTime;
            }
            set { _createTime = value; }
        }
        
        
        private int _createUserId;
        /// <summary>
        /// 创建人id
        /// </summary>
        [Column("CreateUserId")]
        public int CreateUserId 
        {
            get
            {
                return _createUserId;
            }
            set { _createUserId = value; }
        }
        
        
        private string _createUser;
        /// <summary>
        /// 创建人
        /// </summary>
        [Column("CreateUser")]
        public string CreateUser 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_createUser))
                    _createUser=string.Empty;
                return _createUser;
            }
            set { _createUser = value; }
        }
        
        
        private int _modifyUserId;
        /// <summary>
        /// 修改人id
        /// </summary>
        [Column("ModifyUserId")]
        public int ModifyUserId 
        {
            get
            {
                return _modifyUserId;
            }
            set { _modifyUserId = value; }
        }
        
        
        private string _modifyUser;
        /// <summary>
        /// 修改人
        /// </summary>
        [Column("ModifyUser")]
        public string ModifyUser 
        {
            get
            {
                if(string.IsNullOrWhiteSpace(_modifyUser))
                    _modifyUser=string.Empty;
                return _modifyUser;
            }
            set { _modifyUser = value; }
        }
        
        
        private System.DateTime _modifyTime;
        /// <summary>
        /// 修改时间
        /// </summary>
        [Column("ModifyTime")]
        public System.DateTime ModifyTime 
        {
            get
            {
                if (_modifyTime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _modifyTime;
            }
            set { _modifyTime = value; }
        }
        
        
        private bool _isDeleted;
        /// <summary>
        /// 是否删除
        /// </summary>
        [Column("IsDeleted")]
        public bool IsDeleted 
        {
            get
            {
                return _isDeleted;
            }
            set { _isDeleted = value; }
        }
        
        
    }
}

